dsh-maintainer-doc-guard: DeepSeek Harness Long-Term Memory and Intent Guard
`dsh-maintainer-doc-guard` is a bundle for DeepSeek Harness, designed to address memory loss and intent drift caused by long-context compression. The bundle maintains project memory through the following mechanisms: 1. **Maintenance documentation reminder**: The system prompt forces the model to read maintenance documentation (such as `plan.md` and `conventions.md`) before each operation, re-dehydrating its memory. 2. **Precedent gate and intent gate**: Through a `tools/pre-execute` defense mechanism, it prevents the model from writing infrastructure code without reading precedent files and requires the model to clarify its intent before execution. 3. **Goal anchor**: The system prompt prioritizes the user's latest instructions, preventing the model from drifting from its original intent through self-derivation.
Read More